package com.ruoyi.system.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 医疗器材信息对象 medical_equipment
 * 
 * @author ruoyi
 * @date 2025-07-02
 */
public class MedicalEquipment extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 器材id */
    private Long equipmentId;

    /** 所属医院id */
    @Excel(name = "所属医院id")
    private Long hospitalId;

    /** 器材名称 */
    @Excel(name = "器材名称")
    private String name;

    /** 器材类型 */
    @Excel(name = "器材类型")
    private String model;

    /** 器材类别，如影像设备、手术器械等 */
    @Excel(name = "器材类别，如影像设备、手术器械等")
    private String category;

    /** 购买日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "购买日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date purchaseDate;

    /** 购买价格 */
    @Excel(name = "购买价格")
    private BigDecimal price;

    /** 设备状态：正常、维修中、报废等 */
    @Excel(name = "设备状态：正常、维修中、报废等")
    private String status;

    public void setEquipmentId(Long equipmentId) 
    {
        this.equipmentId = equipmentId;
    }

    public Long getEquipmentId() 
    {
        return equipmentId;
    }
    public void setHospitalId(Long hospitalId) 
    {
        this.hospitalId = hospitalId;
    }

    public Long getHospitalId() 
    {
        return hospitalId;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setModel(String model) 
    {
        this.model = model;
    }

    public String getModel() 
    {
        return model;
    }
    public void setCategory(String category) 
    {
        this.category = category;
    }

    public String getCategory() 
    {
        return category;
    }
    public void setPurchaseDate(Date purchaseDate) 
    {
        this.purchaseDate = purchaseDate;
    }

    public Date getPurchaseDate() 
    {
        return purchaseDate;
    }
    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("equipmentId", getEquipmentId())
            .append("hospitalId", getHospitalId())
            .append("name", getName())
            .append("model", getModel())
            .append("category", getCategory())
            .append("purchaseDate", getPurchaseDate())
            .append("price", getPrice())
            .append("status", getStatus())
            .append("remark", getRemark())
            .toString();
    }
}
